3.1.84 \(\int \frac {1}{(a+a \sec (e+f x))^{5/2} (c-c \sec (e+f x))} \, dx\) [84]

Optimal. Leaf size=230 \[ \frac {2 \text {ArcTan}\left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{a^{5/2} c f}-\frac {71 \text {ArcTan}\left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {2} \sqrt {a+a \sec (e+f x)}}\right )}{32 \sqrt {2} a^{5/2} c f}-\frac {7 \cot (e+f x) \sqrt {a+a \sec (e+f x)}}{32 a^3 c f}+\frac {13 \cos (e+f x) \cot (e+f x) \sec ^2\left (\frac {1}{2} (e+f x)\right ) \sqrt {a+a \sec (e+f x)}}{32 a^3 c f}+\frac {\cos ^2(e+f x) \cot (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right ) \sqrt {a+a \sec (e+f x)}}{16 a^3 c f} \]

[Out]

2*arctan(a^(1/2)*tan(f*x+e)/(a+a*sec(f*x+e))^(1/2))/a^(5/2)/c/f-71/64*arctan(1/2*a^(1/2)*tan(f*x+e)*2^(1/2)/(a
+a*sec(f*x+e))^(1/2))/a^(5/2)/c/f*2^(1/2)-7/32*cot(f*x+e)*(a+a*sec(f*x+e))^(1/2)/a^3/c/f+13/32*cos(f*x+e)*cot(
f*x+e)*sec(1/2*f*x+1/2*e)^2*(a+a*sec(f*x+e))^(1/2)/a^3/c/f+1/16*cos(f*x+e)^2*cot(f*x+e)*sec(1/2*f*x+1/2*e)^4*(
a+a*sec(f*x+e))^(1/2)/a^3/c/f

________________________________________________________________________________________

Rubi [A]
time = 0.21, antiderivative size = 230, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3989, 3972, 483, 593, 597, 536, 209} \begin {gather*} \frac {2 \text {ArcTan}\left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a \sec (e+f x)+a}}\right )}{a^{5/2} c f}-\frac {71 \text {ArcTan}\left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {2} \sqrt {a \sec (e+f x)+a}}\right )}{32 \sqrt {2} a^{5/2} c f}-\frac {7 \cot (e+f x) \sqrt {a \sec (e+f x)+a}}{32 a^3 c f}+\frac {\cos ^2(e+f x) \cot (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right ) \sqrt {a \sec (e+f x)+a}}{16 a^3 c f}+\frac {13 \cos (e+f x) \cot (e+f x) \sec ^2\left (\frac {1}{2} (e+f x)\right ) \sqrt {a \sec (e+f x)+a}}{32 a^3 c f} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/((a + a*Sec[e + f*x])^(5/2)*(c - c*Sec[e + f*x])),x]

[Out]

(2*ArcTan[(Sqrt[a]*Tan[e + f*x])/Sqrt[a + a*Sec[e + f*x]]])/(a^(5/2)*c*f) - (71*ArcTan[(Sqrt[a]*Tan[e + f*x])/
(Sqrt[2]*Sqrt[a + a*Sec[e + f*x]])])/(32*Sqrt[2]*a^(5/2)*c*f) - (7*Cot[e + f*x]*Sqrt[a + a*Sec[e + f*x]])/(32*
a^3*c*f) + (13*Cos[e + f*x]*Cot[e + f*x]*Sec[(e + f*x)/2]^2*Sqrt[a + a*Sec[e + f*x]])/(32*a^3*c*f) + (Cos[e +
f*x]^2*Cot[e + f*x]*Sec[(e + f*x)/2]^4*Sqrt[a + a*Sec[e + f*x]])/(16*a^3*c*f)

Rule 209

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*ArcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rule 483

Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[(-b)*(e*
x)^(m + 1)*(a + b*x^n)^(p + 1)*((c + d*x^n)^(q + 1)/(a*e*n*(b*c - a*d)*(p + 1))), x] + Dist[1/(a*n*(b*c - a*d)
*(p + 1)), Int[(e*x)^m*(a + b*x^n)^(p + 1)*(c + d*x^n)^q*Simp[c*b*(m + 1) + n*(b*c - a*d)*(p + 1) + d*b*(m + n
*(p + q + 2) + 1)*x^n, x], x], x] /; FreeQ[{a, b, c, d, e, m, q}, x] && NeQ[b*c - a*d, 0] && IGtQ[n, 0] && LtQ
[p, -1] && IntBinomialQ[a, b, c, d, e, m, n, p, q, x]

Rule 536

Int[((e_) + (f_.)*(x_)^(n_))/(((a_) + (b_.)*(x_)^(n_))*((c_) + (d_.)*(x_)^(n_))), x_Symbol] :> Dist[(b*e - a*f
)/(b*c - a*d), Int[1/(a + b*x^n), x], x] - Dist[(d*e - c*f)/(b*c - a*d), Int[1/(c + d*x^n), x], x] /; FreeQ[{a
, b, c, d, e, f, n}, x]

Rule 593

Int[((g_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_)*((e_) + (f_.)*(x_)^(n_)), x
_Symbol] :> Simp[(-(b*e - a*f))*(g*x)^(m + 1)*(a + b*x^n)^(p + 1)*((c + d*x^n)^(q + 1)/(a*g*n*(b*c - a*d)*(p +
 1))), x] + Dist[1/(a*n*(b*c - a*d)*(p + 1)), Int[(g*x)^m*(a + b*x^n)^(p + 1)*(c + d*x^n)^q*Simp[c*(b*e - a*f)
*(m + 1) + e*n*(b*c - a*d)*(p + 1) + d*(b*e - a*f)*(m + n*(p + q + 2) + 1)*x^n, x], x], x] /; FreeQ[{a, b, c,
d, e, f, g, m, q}, x] && IGtQ[n, 0] && LtQ[p, -1]

Rule 597

Int[((g_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.)*((e_) + (f_.)*(x_)^(n_)),
x_Symbol] :> Simp[e*(g*x)^(m + 1)*(a + b*x^n)^(p + 1)*((c + d*x^n)^(q + 1)/(a*c*g*(m + 1))), x] + Dist[1/(a*c*
g^n*(m + 1)), Int[(g*x)^(m + n)*(a + b*x^n)^p*(c + d*x^n)^q*Simp[a*f*c*(m + 1) - e*(b*c + a*d)*(m + n + 1) - e
*n*(b*c*p + a*d*q) - b*e*d*(m + n*(p + q + 2) + 1)*x^n, x], x], x] /; FreeQ[{a, b, c, d, e, f, g, p, q}, x] &&
 IGtQ[n, 0] && LtQ[m, -1]

Rule 3972

Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n_.), x_Symbol] :> Dist[-2*(a^(m/2 +
 n + 1/2)/d), Subst[Int[x^m*((2 + a*x^2)^(m/2 + n - 1/2)/(1 + a*x^2)), x], x, Cot[c + d*x]/Sqrt[a + b*Csc[c +
d*x]]], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0] && IntegerQ[m/2] && IntegerQ[n - 1/2]

Rule 3989

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_.)*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))^(n_.), x_Symbol] :> Di
st[((-a)*c)^m, Int[Cot[e + f*x]^(2*m)*(c + d*Csc[e + f*x])^(n - m), x], x] /; FreeQ[{a, b, c, d, e, f, n}, x]
&& EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && IntegerQ[m] && RationalQ[n] &&  !(IntegerQ[n] && GtQ[m - n, 0])

Rubi steps

\begin {align*} \int \frac {1}{(a+a \sec (e+f x))^{5/2} (c-c \sec (e+f x))} \, dx &=-\frac {\int \frac {\cot ^2(e+f x)}{(a+a \sec (e+f x))^{3/2}} \, dx}{a c}\\ &=\frac {2 \text {Subst}\left (\int \frac {1}{x^2 \left (1+a x^2\right ) \left (2+a x^2\right )^3} \, dx,x,-\frac {\tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{a^3 c f}\\ &=\frac {\cos ^2(e+f x) \cot (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right ) \sqrt {a+a \sec (e+f x)}}{16 a^3 c f}+\frac {\text {Subst}\left (\int \frac {3 a-5 a^2 x^2}{x^2 \left (1+a x^2\right ) \left (2+a x^2\right )^2} \, dx,x,-\frac {\tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{4 a^4 c f}\\ &=\frac {13 \cos (e+f x) \cot (e+f x) \sec ^2\left (\frac {1}{2} (e+f x)\right ) \sqrt {a+a \sec (e+f x)}}{32 a^3 c f}+\frac {\cos ^2(e+f x) \cot (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right ) \sqrt {a+a \sec (e+f x)}}{16 a^3 c f}+\frac {\text {Subst}\left (\int \frac {-7 a^2-39 a^3 x^2}{x^2 \left (1+a x^2\right ) \left (2+a x^2\right )} \, dx,x,-\frac {\tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{16 a^5 c f}\\ &=-\frac {7 \cot (e+f x) \sqrt {a+a \sec (e+f x)}}{32 a^3 c f}+\frac {13 \cos (e+f x) \cot (e+f x) \sec ^2\left (\frac {1}{2} (e+f x)\right ) \sqrt {a+a \sec (e+f x)}}{32 a^3 c f}+\frac {\cos ^2(e+f x) \cot (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right ) \sqrt {a+a \sec (e+f x)}}{16 a^3 c f}-\frac {\text {Subst}\left (\int \frac {57 a^3-7 a^4 x^2}{\left (1+a x^2\right ) \left (2+a x^2\right )} \, dx,x,-\frac {\tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{32 a^5 c f}\\ &=-\frac {7 \cot (e+f x) \sqrt {a+a \sec (e+f x)}}{32 a^3 c f}+\frac {13 \cos (e+f x) \cot (e+f x) \sec ^2\left (\frac {1}{2} (e+f x)\right ) \sqrt {a+a \sec (e+f x)}}{32 a^3 c f}+\frac {\cos ^2(e+f x) \cot (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right ) \sqrt {a+a \sec (e+f x)}}{16 a^3 c f}-\frac {2 \text {Subst}\left (\int \frac {1}{1+a x^2} \, dx,x,-\frac {\tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{a^2 c f}+\frac {71 \text {Subst}\left (\int \frac {1}{2+a x^2} \, dx,x,-\frac {\tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{32 a^2 c f}\\ &=\frac {2 \tan ^{-1}\left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{a^{5/2} c f}-\frac {71 \tan ^{-1}\left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {2} \sqrt {a+a \sec (e+f x)}}\right )}{32 \sqrt {2} a^{5/2} c f}-\frac {7 \cot (e+f x) \sqrt {a+a \sec (e+f x)}}{32 a^3 c f}+\frac {13 \cos (e+f x) \cot (e+f x) \sec ^2\left (\frac {1}{2} (e+f x)\right ) \sqrt {a+a \sec (e+f x)}}{32 a^3 c f}+\frac {\cos ^2(e+f x) \cot (e+f x) \sec ^4\left (\frac {1}{2} (e+f x)\right ) \sqrt {a+a \sec (e+f x)}}{16 a^3 c f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 1.51, size = 158, normalized size = 0.69 \begin {gather*} \frac {\left (13+24 \cos (e+f x)+27 \cos (2 (e+f x))+512 \text {ArcTan}\left (\sqrt {-1+\sec (e+f x)}\right ) \cos ^4\left (\frac {1}{2} (e+f x)\right ) \sqrt {-1+\sec (e+f x)}-284 \sqrt {2} \text {ArcTan}\left (\frac {\sqrt {-1+\sec (e+f x)}}{\sqrt {2}}\right ) \cos ^4\left (\frac {1}{2} (e+f x)\right ) \sqrt {-1+\sec (e+f x)}\right ) \tan ^3\left (\frac {1}{2} (e+f x)\right )}{64 a^2 c f (-1+\cos (e+f x))^2 \sqrt {a (1+\sec (e+f x))}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/((a + a*Sec[e + f*x])^(5/2)*(c - c*Sec[e + f*x])),x]

[Out]

((13 + 24*Cos[e + f*x] + 27*Cos[2*(e + f*x)] + 512*ArcTan[Sqrt[-1 + Sec[e + f*x]]]*Cos[(e + f*x)/2]^4*Sqrt[-1
+ Sec[e + f*x]] - 284*Sqrt[2]*ArcTan[Sqrt[-1 + Sec[e + f*x]]/Sqrt[2]]*Cos[(e + f*x)/2]^4*Sqrt[-1 + Sec[e + f*x
]])*Tan[(e + f*x)/2]^3)/(64*a^2*c*f*(-1 + Cos[e + f*x])^2*Sqrt[a*(1 + Sec[e + f*x])])

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(544\) vs. \(2(199)=398\).
time = 0.24, size = 545, normalized size = 2.37

method result size
default \(\frac {\sqrt {\frac {a \left (\cos \left (f x +e \right )+1\right )}{\cos \left (f x +e \right )}}\, \left (-1+\cos \left (f x +e \right )\right )^{2} \left (-64 \sqrt {-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sin \left (f x +e \right ) \sqrt {2}}{2 \cos \left (f x +e \right )}\right ) \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right ) \sqrt {2}-71 \sqrt {-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \ln \left (\frac {\sin \left (f x +e \right ) \sqrt {-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}-\cos \left (f x +e \right )+1}{\sin \left (f x +e \right )}\right ) \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )-128 \sin \left (f x +e \right ) \cos \left (f x +e \right ) \sqrt {-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sin \left (f x +e \right ) \sqrt {2}}{2 \cos \left (f x +e \right )}\right ) \sqrt {2}-142 \sqrt {-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \ln \left (\frac {\sin \left (f x +e \right ) \sqrt {-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}-\cos \left (f x +e \right )+1}{\sin \left (f x +e \right )}\right ) \cos \left (f x +e \right ) \sin \left (f x +e \right )-64 \sqrt {2}\, \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sin \left (f x +e \right ) \sqrt {2}}{2 \cos \left (f x +e \right )}\right ) \sqrt {-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sin \left (f x +e \right )+54 \left (\cos ^{3}\left (f x +e \right )\right )-71 \sin \left (f x +e \right ) \sqrt {-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \ln \left (\frac {\sin \left (f x +e \right ) \sqrt {-\frac {2 \cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}-\cos \left (f x +e \right )+1}{\sin \left (f x +e \right )}\right )+24 \left (\cos ^{2}\left (f x +e \right )\right )-14 \cos \left (f x +e \right )\right )}{64 c f \sin \left (f x +e \right )^{5} a^{3}}\) \(545\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(a+a*sec(f*x+e))^(5/2)/(c-c*sec(f*x+e)),x,method=_RETURNVERBOSE)

[Out]

1/64/c/f*(a*(cos(f*x+e)+1)/cos(f*x+e))^(1/2)*(-1+cos(f*x+e))^2*(-64*(-2*cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*arcta
nh(1/2*(-2*cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*sin(f*x+e)/cos(f*x+e)*2^(1/2))*cos(f*x+e)^2*sin(f*x+e)*2^(1/2)-71*
(-2*cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*ln((sin(f*x+e)*(-2*cos(f*x+e)/(cos(f*x+e)+1))^(1/2)-cos(f*x+e)+1)/sin(f*x
+e))*cos(f*x+e)^2*sin(f*x+e)-128*sin(f*x+e)*cos(f*x+e)*(-2*cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*arctanh(1/2*(-2*co
s(f*x+e)/(cos(f*x+e)+1))^(1/2)*sin(f*x+e)/cos(f*x+e)*2^(1/2))*2^(1/2)-142*(-2*cos(f*x+e)/(cos(f*x+e)+1))^(1/2)
*ln((sin(f*x+e)*(-2*cos(f*x+e)/(cos(f*x+e)+1))^(1/2)-cos(f*x+e)+1)/sin(f*x+e))*cos(f*x+e)*sin(f*x+e)-64*2^(1/2
)*arctanh(1/2*(-2*cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*sin(f*x+e)/cos(f*x+e)*2^(1/2))*(-2*cos(f*x+e)/(cos(f*x+e)+1
))^(1/2)*sin(f*x+e)+54*cos(f*x+e)^3-71*sin(f*x+e)*(-2*cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*ln((sin(f*x+e)*(-2*cos(
f*x+e)/(cos(f*x+e)+1))^(1/2)-cos(f*x+e)+1)/sin(f*x+e))+24*cos(f*x+e)^2-14*cos(f*x+e))/sin(f*x+e)^5/a^3

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a+a*sec(f*x+e))^(5/2)/(c-c*sec(f*x+e)),x, algorithm="maxima")

[Out]

-integrate(1/((a*sec(f*x + e) + a)^(5/2)*(c*sec(f*x + e) - c)), x)

________________________________________________________________________________________

Fricas [A]
time = 3.69, size = 662, normalized size = 2.88 \begin {gather*} \left [-\frac {71 \, \sqrt {2} {\left (\cos \left (f x + e\right )^{2} + 2 \, \cos \left (f x + e\right ) + 1\right )} \sqrt {-a} \log \left (-\frac {2 \, \sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - 3 \, a \cos \left (f x + e\right )^{2} - 2 \, a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )^{2} + 2 \, \cos \left (f x + e\right ) + 1}\right ) \sin \left (f x + e\right ) + 64 \, {\left (\cos \left (f x + e\right )^{2} + 2 \, \cos \left (f x + e\right ) + 1\right )} \sqrt {-a} \log \left (-\frac {8 \, a \cos \left (f x + e\right )^{3} + 4 \, {\left (2 \, \cos \left (f x + e\right )^{2} - \cos \left (f x + e\right )\right )} \sqrt {-a} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right ) - 7 \, a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right ) + 1}\right ) \sin \left (f x + e\right ) - 4 \, {\left (27 \, \cos \left (f x + e\right )^{3} + 12 \, \cos \left (f x + e\right )^{2} - 7 \, \cos \left (f x + e\right )\right )} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}}}{128 \, {\left (a^{3} c f \cos \left (f x + e\right )^{2} + 2 \, a^{3} c f \cos \left (f x + e\right ) + a^{3} c f\right )} \sin \left (f x + e\right )}, \frac {71 \, \sqrt {2} {\left (\cos \left (f x + e\right )^{2} + 2 \, \cos \left (f x + e\right ) + 1\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{\sqrt {a} \sin \left (f x + e\right )}\right ) \sin \left (f x + e\right ) + 64 \, {\left (\cos \left (f x + e\right )^{2} + 2 \, \cos \left (f x + e\right ) + 1\right )} \sqrt {a} \arctan \left (\frac {2 \, \sqrt {a} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right )}{2 \, a \cos \left (f x + e\right )^{2} + a \cos \left (f x + e\right ) - a}\right ) \sin \left (f x + e\right ) + 2 \, {\left (27 \, \cos \left (f x + e\right )^{3} + 12 \, \cos \left (f x + e\right )^{2} - 7 \, \cos \left (f x + e\right )\right )} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}}}{64 \, {\left (a^{3} c f \cos \left (f x + e\right )^{2} + 2 \, a^{3} c f \cos \left (f x + e\right ) + a^{3} c f\right )} \sin \left (f x + e\right )}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a+a*sec(f*x+e))^(5/2)/(c-c*sec(f*x+e)),x, algorithm="fricas")

[Out]

[-1/128*(71*sqrt(2)*(cos(f*x + e)^2 + 2*cos(f*x + e) + 1)*sqrt(-a)*log(-(2*sqrt(2)*sqrt(-a)*sqrt((a*cos(f*x +
e) + a)/cos(f*x + e))*cos(f*x + e)*sin(f*x + e) - 3*a*cos(f*x + e)^2 - 2*a*cos(f*x + e) + a)/(cos(f*x + e)^2 +
 2*cos(f*x + e) + 1))*sin(f*x + e) + 64*(cos(f*x + e)^2 + 2*cos(f*x + e) + 1)*sqrt(-a)*log(-(8*a*cos(f*x + e)^
3 + 4*(2*cos(f*x + e)^2 - cos(f*x + e))*sqrt(-a)*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*sin(f*x + e) - 7*a*co
s(f*x + e) + a)/(cos(f*x + e) + 1))*sin(f*x + e) - 4*(27*cos(f*x + e)^3 + 12*cos(f*x + e)^2 - 7*cos(f*x + e))*
sqrt((a*cos(f*x + e) + a)/cos(f*x + e)))/((a^3*c*f*cos(f*x + e)^2 + 2*a^3*c*f*cos(f*x + e) + a^3*c*f)*sin(f*x
+ e)), 1/64*(71*sqrt(2)*(cos(f*x + e)^2 + 2*cos(f*x + e) + 1)*sqrt(a)*arctan(sqrt(2)*sqrt((a*cos(f*x + e) + a)
/cos(f*x + e))*cos(f*x + e)/(sqrt(a)*sin(f*x + e)))*sin(f*x + e) + 64*(cos(f*x + e)^2 + 2*cos(f*x + e) + 1)*sq
rt(a)*arctan(2*sqrt(a)*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*cos(f*x + e)*sin(f*x + e)/(2*a*cos(f*x + e)^2 +
 a*cos(f*x + e) - a))*sin(f*x + e) + 2*(27*cos(f*x + e)^3 + 12*cos(f*x + e)^2 - 7*cos(f*x + e))*sqrt((a*cos(f*
x + e) + a)/cos(f*x + e)))/((a^3*c*f*cos(f*x + e)^2 + 2*a^3*c*f*cos(f*x + e) + a^3*c*f)*sin(f*x + e))]

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \frac {\int \frac {1}{a^{2} \sqrt {a \sec {\left (e + f x \right )} + a} \sec ^{3}{\left (e + f x \right )} + a^{2} \sqrt {a \sec {\left (e + f x \right )} + a} \sec ^{2}{\left (e + f x \right )} - a^{2} \sqrt {a \sec {\left (e + f x \right )} + a} \sec {\left (e + f x \right )} - a^{2} \sqrt {a \sec {\left (e + f x \right )} + a}}\, dx}{c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a+a*sec(f*x+e))**(5/2)/(c-c*sec(f*x+e)),x)

[Out]

-Integral(1/(a**2*sqrt(a*sec(e + f*x) + a)*sec(e + f*x)**3 + a**2*sqrt(a*sec(e + f*x) + a)*sec(e + f*x)**2 - a
**2*sqrt(a*sec(e + f*x) + a)*sec(e + f*x) - a**2*sqrt(a*sec(e + f*x) + a)), x)/c

________________________________________________________________________________________

Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a+a*sec(f*x+e))^(5/2)/(c-c*sec(f*x+e)),x, algorithm="giac")

[Out]

Exception raised: TypeError >> An error occurred running a Giac command:INPUT:sage2:=int(sage0,sageVARx):;OUTP
UT:Warning, integration of abs or sign assumes constant sign by intervals (correct if the argument is real):Ch
eck [abs(co

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{{\left (a+\frac {a}{\cos \left (e+f\,x\right )}\right )}^{5/2}\,\left (c-\frac {c}{\cos \left (e+f\,x\right )}\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/((a + a/cos(e + f*x))^(5/2)*(c - c/cos(e + f*x))),x)

[Out]

int(1/((a + a/cos(e + f*x))^(5/2)*(c - c/cos(e + f*x))), x)

________________________________________________________________________________________